package com.kk.service.impl;

import com.kk.Entry.DeptLog;
import com.kk.Mapper.DeptLogMapper;
import com.kk.aop.log;
import com.kk.service.DeptLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;

@Service
public class DeptLogServiceImp implements DeptLogService {
    @Autowired
    private DeptLogMapper deptLogMapper;

    @Override @log
    public int insertDeptLog(DeptLog deptLog) {
        ThreadLocal<Integer> deptLogThreadLocal = new ThreadLocal<>();
        deptLogThreadLocal.set(deptLog.getId());
        return deptLogMapper.insertDeptLog(deptLog);

    }
}
